package com.john.design.创建性模型.建造者模式;

/**
 * @Author: JohnCoding
 * @Description:
 * @date: 2020/8/10 23:28
 */
public class CourseActualBuilder extends CourseBuilder{

    private Course course = new Course();

    @Override
    public void buildName(String name) {
        course.setName(name);
    }

    @Override
    public void buildType(String type) {
        course.setType(type);
    }

    @Override
    public void buildPPT(String PPT) {
        course.setPpt(PPT);
    }

    @Override
    public void buildQa(String qa) {
        course.setQa(qa);
    }

    @Override
    public Course build(){
        return this.course;
    }


}
